package com.markerhub.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2021-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 博客id
     */
    @TableId(value = "blog_id",type = IdType.AUTO)
    private Integer blogId;

    /**
     * 标题
     */
    private String title;

    private Integer uid;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 首图
     */
    private String firstPicture;

    /**
     * 完成状态
     */
    private String flag;

    /**
     * 点赞数
     */
    private Integer thumbs;

    /**
     * 发布状态
     */
    private Boolean published;

    /**
     * 推荐状态
     */
    private Boolean recommend;

    /**
     * 版权状态
     */
    private String shareStatement;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 浏览次数
     */
    private Integer views;

    private Integer typeId;

    private String description;

    /**
     * 赞赏状态
     */
    private Boolean appreciation;

    /**
     * 评论状态
     */
    private Boolean commentabled;

    private Integer tagId;

    private String nickname;

    private String avatar;

    private String typeName;
}
